﻿using Sustainalytics.Entities;
using System;

namespace Sustainalytics.ScreeningTool.Service.Models
{
    public class CriteriaIdCollectionDto
    {
        public Guid Id { get; set; }
        public string Name { get; set; }

        public static object CreateIdCollection(BaseCriteria baseCriteria)
        {
            if (baseCriteria == null)
                throw new ArgumentNullException("BaseCriteria", "BaseCriteria cannot be null.");

            return new
            {
                Id = baseCriteria.Id,
                Name = baseCriteria.Name
            };
        }
    }
}
